import type { UserResolvers } from "./../../types.generated";
export const User: UserResolvers = {
  /* Implement User resolver logic here */
  fullName: ({ firstName, lastName }) => `${firstName} ${lastName}`,
  isAdmin: ({ isAdmin }) => {
    /* User.isAdmin resolver is required because User.isAdmin and UserMapper.isAdmin are not compatible */
    return isAdmin === "YES";
  }
};
